How to filter out or stop getting data field within Opendaylight(Oxygen) BGP-LS data change event

折月煮酒 提交于 2019-12-25 18:58:08

问题


Following is the example of topology i have for BGP-LS updates:

{
"topology": [
{
    "topology-id": "bgp-example-linkstate-topology",
    "link": [
        {
            "link-id": "bgpls://IsisLevel2:0/type=link&local-as=65038&local- 
            router=0000.0000.0010.07&remote-as=65038&remote-router=0000.0000.0005",
            "source": {
                "source-tp": "bgpls://IsisLevel2:0/type=tp",
                "source-node": 
          "bgpls://IsisLevel2:0/type=node&as=65038&router=0000.0000.0010.07"
            },
            "destination": {
                "dest-tp": "bgpls://IsisLevel2:0/type=tp",
                "dest-node": 
             "bgpls://IsisLevel2:0/type=node&as=65038&router=0000.0000.0005"
            },
            "l3-unicast-igp-topology:igp-link-attributes": {
                "isis-topology:isis-link-attributes": {
                    "ted": {
                        "te-default-metric": 0
                    }
                }
            }
        }
    "topology-types": {
        "odl-bgp-topology-types:bgp-linkstate-topology": {}
    },
    "node": [
        {
            "node-id": 
         "bgpls://IsisLevel2:0/type=node&as=65038&router=0000.0000.0008.03",
            "l3-unicast-igp-topology:igp-node-attributes": {
                "isis-topology:isis-node-attributes": {
                    "ted": {},
                    "iso": {
                        "iso-system-id": "0000.0000.0008",
                        "iso-pseudonode-id": "03"
                    }
                }
            },
            "termination-point": [
                {
                    "tp-id": "bgpls://IsisLevel2:0/type=tp"
                }
            ]
    },
    "node": [
        {
            "node-id": 
         "bgpls://IsisLevel2:0/type=node&as=65038&router=0000.0000.0008.04",
            "l3-unicast-igp-topology:igp-node-attributes": {
                "isis-topology:isis-node-attributes": {
                    "ted": {},
                    "iso": {
                        "iso-system-id": "0000.0000.0008",
                        "iso-pseudonode-id": "03"
                    }
                }
            },
            "termination-point": [
                {
                    "tp-id": "bgpls://IsisLevel2:0/type=tp"
                }
            ]

As soon as i am making any changes within the topology. I receive data change events within the websocket i subscribed to for this topology. Example of a data change event is given below:

<data-change-event>
        <path>/network-topology:network-topology/network-topology:topology[network-topology:topology-id='bgp-example-linkstate-topology']/network-topology:link[network-topology:link-id='bgpls://IsisLevel2:0/type=link&amp;local-as=65038&amp;local-router=0000.0000.0008.03&amp']</path>
        <operation>updated</operation>
        <data>
            <unreserved-bandwidth xmlns="urn:TBD:params:xml:ns:yang:network:isis-topology">
                <priority>4</priority>
                <bandwidth>12499999744</bandwidth>
            </unreserved-bandwidth>
        </data>
    </data-change-event>

Due to some latency issues, i do not need data field and want to remove it. Is there any way i can filter out the data field from data change event? Or if it is possible that i can make any changes while data change subscription to stop getting data field?


回答1:


There is no mechanism currently to filter out fields. Seems like useful functionality - perhaps you would like to contribute it?



来源:https://stackoverflow.com/questions/50104402/how-to-filter-out-or-stop-getting-data-field-within-opendaylightoxygen-bgp-ls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!