Skip to content

[yang]: Add Yang models for BGP monitor#9752

Merged
ganglyu merged 2 commits intosonic-net:masterfrom
ganglyu:bgp_monitor
Jan 20, 2022
Merged

[yang]: Add Yang models for BGP monitor#9752
ganglyu merged 2 commits intosonic-net:masterfrom
ganglyu:bgp_monitor

Conversation

@ganglyu
Copy link
Contributor

@ganglyu ganglyu commented Jan 13, 2022

Signed-off-by: Gang Lv ganglv@microsoft.com

Why I did it

end2end test is blocked by Yang model for BGP monitor.

How I did it

Create new yang files for BGP monitor, and add UT.

How to verify it

Follow the steps in #9711.
Run UT for sonic-yang-models.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

Fix #9711

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Gang Lv ganglv@microsoft.com
@wen587
Copy link
Contributor

wen587 commented Jan 13, 2022

Tested on KVM env. apply-patch can succeed. But bgpcfgd report ERR. It may be caused by invalid value in my patch because I am not sure how to configure that.

BTW, I saw in production that asn could be 0.

admin@vlab-01:~/bgpl$ cat add.json
[ {
  "op": "add",
  "path": "/BGP_MONITORS",
  "value": {
   "10.0.0.57": {
    "asn": "1",
    "holdtime": "180",
    "keepalive": "60",
    "local_addr": "10.0.0.58",
    "name": "BGPMonitor",
    "nhopself": "0",
    "rrclient": "0"
   }
  }
 }
]

admin@vlab-01:~/bgpl$ sudo cat /var/log/syslog | less

Jan 13 07:12:17.930661 vlab-01 NOTICE config: Patch Applier: Applying 7 changes in order:
Jan 13 07:12:17.930783 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS", "value": {"10.0.0.57": {"asn": "1"}}}]
Jan 13 07:12:18.269504 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'),))'
Jan 13 07:12:18.271356 vlab-01 WARNING bgp#bgpcfgd: Peer 10.0.0.57. Missing attribute 'local_addr'
Jan 13 07:12:18.272549 vlab-01 INFO bgp#bgpcfgd: Routing policy for peer '10.0.0.57' has been scheduled to be updated
Jan 13 07:12:18.272549 vlab-01 INFO bgp#bgpcfgd: Peer-group for peer '10.0.0.57' has been scheduled to be updated
Jan 13 07:12:18.273635 vlab-01 INFO bgp#bgpcfgd: Peer '(default|10.0.0.57)' has been scheduled to be added with attributes '{'asn': '1'}'
Jan 13 07:12:18.274026 vlab-01 DEBUG bgp#bgpcfgd: execute command '['vtysh', '-f', '/tmp/tmph_geju49']'.
Jan 13 07:12:18.399504 vlab-01 ERR bgp#bgpcfgd: command execution returned 2. Command: '['vtysh', '-f', '/tmp/tmph_geju49']', stdout: '', stderr: 'line 29: % Unknown command[24]:   neighbor 10.0.0.57 description #012'
Jan 13 07:12:18.400561 vlab-01 ERR bgp#bgpcfgd: ConfigMgr::commit(): can't push configuration from file='/tmp/tmph_geju49', rc='2', stdout='', stderr='line 29: % Unknown command[24]:   neighbor 10.0.0.57 description #012'
Jan 13 07:12:18.401146 vlab-01 CRIT bgp#bgpcfgd: Runner::commit was unsuccessful
Jan 13 07:12:18.574125 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/holdtime", "value": "180"}]
Jan 13 07:12:18.926387 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180')))'
Jan 13 07:12:18.926801 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:19.269490 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/keepalive", "value": "60"}]
Jan 13 07:12:19.599301 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60')))'
Jan 13 07:12:19.599526 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:19.926194 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/local_addr", "value": "10.0.0.58"}]
Jan 13 07:12:20.264585 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58')))'
Jan 13 07:12:20.264926 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:20.574737 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/name", "value": "BGPMonitor"}]
Jan 13 07:12:20.896012 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58'), ('name', 'BGPMonitor')))'
Jan 13 07:12:20.896012 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:21.228961 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/nhopself", "value": "0"}]
Jan 13 07:12:21.562566 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58'), ('name', 'BGPMonitor'), ('nhopself', '0')))'
Jan 13 07:12:21.562566 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:21.898524 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/rrclient", "value": "0"}]
Jan 13 07:12:22.256744 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58'), ('name', 'BGPMonitor'), ('nhopself', '0'), ('rrclient', '0')))'
Jan 13 07:12:22.256744 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:22.625071 vlab-01 NOTICE config: Patch Applier: Verifying patch updates are reflected on ConfigDB.
Jan 13 07:12:23.670024 vlab-01 NOTICE config: Patch Applier: Patch application completed.


range "0..1";
}
description "Route reflector client";
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if nhopself and rrclient are required fields. Could you please confirm?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per bgpcfgd code, these are required fields.

@qiluo-msft
Copy link
Collaborator

@venkatmahalingam Could you help review?

@venkatmahalingam
Copy link
Collaborator

@venkatmahalingam Could you help review?

Sure, will do.

}

container sonic-bgp-monitor {
container BGP_MONITORS {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This table fields seem to be duplicate from the table BGP_NEIGHBOR, please clarify why do we need a separate table, also, please use the grouping to group the fields and use them in multiple places.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This table fields seem to be duplicate from the table BGP_NEIGHBOR, please clarify why do we need a separate table

This is a good question, and I believe it is large than the PR trying to solve, ie, add the missing yang model for BGP_MONITORS table, which is existing for long,.

This PR will help minigraph parser unit test improvement, which validate each minigraph generated ConfigDB by SONiC Yang model.

This PR will also unblock the generic config updater end-to-end test.

We can create an issue that BGP_NEIGHBOR and BGP_MONITORS tables should be unified.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created issue #9793

}
}
},

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, we should add YANG for BGP_PEER_RANGE table as well, please check and create the PR for review.

@wen587
Copy link
Contributor

wen587 commented Jan 18, 2022

Tested on KVM env. apply-patch can succeed. But bgpcfgd report ERR. It may be caused by invalid value in my patch because I am not sure how to configure that.

BTW, I saw in production that asn could be 0.

admin@vlab-01:~/bgpl$ cat add.json
[ {
  "op": "add",
  "path": "/BGP_MONITORS",
  "value": {
   "10.0.0.57": {
    "asn": "1",
    "holdtime": "180",
    "keepalive": "60",
    "local_addr": "10.0.0.58",
    "name": "BGPMonitor",
    "nhopself": "0",
    "rrclient": "0"
   }
  }
 }
]

admin@vlab-01:~/bgpl$ sudo cat /var/log/syslog | less

Jan 13 07:12:17.930661 vlab-01 NOTICE config: Patch Applier: Applying 7 changes in order:
Jan 13 07:12:17.930783 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS", "value": {"10.0.0.57": {"asn": "1"}}}]
Jan 13 07:12:18.269504 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'),))'
Jan 13 07:12:18.271356 vlab-01 WARNING bgp#bgpcfgd: Peer 10.0.0.57. Missing attribute 'local_addr'
Jan 13 07:12:18.272549 vlab-01 INFO bgp#bgpcfgd: Routing policy for peer '10.0.0.57' has been scheduled to be updated
Jan 13 07:12:18.272549 vlab-01 INFO bgp#bgpcfgd: Peer-group for peer '10.0.0.57' has been scheduled to be updated
Jan 13 07:12:18.273635 vlab-01 INFO bgp#bgpcfgd: Peer '(default|10.0.0.57)' has been scheduled to be added with attributes '{'asn': '1'}'
Jan 13 07:12:18.274026 vlab-01 DEBUG bgp#bgpcfgd: execute command '['vtysh', '-f', '/tmp/tmph_geju49']'.
Jan 13 07:12:18.399504 vlab-01 ERR bgp#bgpcfgd: command execution returned 2. Command: '['vtysh', '-f', '/tmp/tmph_geju49']', stdout: '', stderr: 'line 29: % Unknown command[24]:   neighbor 10.0.0.57 description #012'
Jan 13 07:12:18.400561 vlab-01 ERR bgp#bgpcfgd: ConfigMgr::commit(): can't push configuration from file='/tmp/tmph_geju49', rc='2', stdout='', stderr='line 29: % Unknown command[24]:   neighbor 10.0.0.57 description #012'
Jan 13 07:12:18.401146 vlab-01 CRIT bgp#bgpcfgd: Runner::commit was unsuccessful
Jan 13 07:12:18.574125 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/holdtime", "value": "180"}]
Jan 13 07:12:18.926387 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180')))'
Jan 13 07:12:18.926801 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:19.269490 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/keepalive", "value": "60"}]
Jan 13 07:12:19.599301 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60')))'
Jan 13 07:12:19.599526 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:19.926194 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/local_addr", "value": "10.0.0.58"}]
Jan 13 07:12:20.264585 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58')))'
Jan 13 07:12:20.264926 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:20.574737 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/name", "value": "BGPMonitor"}]
Jan 13 07:12:20.896012 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58'), ('name', 'BGPMonitor')))'
Jan 13 07:12:20.896012 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:21.228961 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/nhopself", "value": "0"}]
Jan 13 07:12:21.562566 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58'), ('name', 'BGPMonitor'), ('nhopself', '0')))'
Jan 13 07:12:21.562566 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:21.898524 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/rrclient", "value": "0"}]
Jan 13 07:12:22.256744 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58'), ('name', 'BGPMonitor'), ('nhopself', '0'), ('rrclient', '0')))'
Jan 13 07:12:22.256744 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:22.625071 vlab-01 NOTICE config: Patch Applier: Verifying patch updates are reflected on ConfigDB.
Jan 13 07:12:23.670024 vlab-01 NOTICE config: Patch Applier: Patch application completed.

Any insight for bgpcfgd issue?

Signed-off-by: Gang Lv ganglv@microsoft.com
"holdtime": "180",
"keepalive": "60",
"local_addr": "10.0.0.2",
"name":"BGPMonitor123",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this test case validate 'name' field? having the digit in the name is invalid?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ganglyu ganglyu merged commit dde5f37 into sonic-net:master Jan 20, 2022
@ganglyu ganglyu added the Request for 202111 Branch For PRs being requested for 202111 branch label Jan 20, 2022
judyjoseph pushed a commit that referenced this pull request Jan 23, 2022
Why I did it
end2end test is blocked by Yang model for BGP monitor.

How I did it
Create new yang files for BGP monitor, and add UT.

How to verify it
Follow the steps in #9711.
Run UT for sonic-yang-models.

Signed-off-by: Gang Lv ganglv@microsoft.com
@ghooo
Copy link
Contributor

ghooo commented Jan 28, 2022

Tested on KVM env. apply-patch can succeed. But bgpcfgd report ERR. It may be caused by invalid value in my patch because I am not sure how to configure that.
BTW, I saw in production that asn could be 0.

admin@vlab-01:~/bgpl$ cat add.json
[ {
  "op": "add",
  "path": "/BGP_MONITORS",
  "value": {
   "10.0.0.57": {
    "asn": "1",
    "holdtime": "180",
    "keepalive": "60",
    "local_addr": "10.0.0.58",
    "name": "BGPMonitor",
    "nhopself": "0",
    "rrclient": "0"
   }
  }
 }
]

admin@vlab-01:~/bgpl$ sudo cat /var/log/syslog | less

Jan 13 07:12:17.930661 vlab-01 NOTICE config: Patch Applier: Applying 7 changes in order:
Jan 13 07:12:17.930783 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS", "value": {"10.0.0.57": {"asn": "1"}}}]
Jan 13 07:12:18.269504 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'),))'
Jan 13 07:12:18.271356 vlab-01 WARNING bgp#bgpcfgd: Peer 10.0.0.57. Missing attribute 'local_addr'
Jan 13 07:12:18.272549 vlab-01 INFO bgp#bgpcfgd: Routing policy for peer '10.0.0.57' has been scheduled to be updated
Jan 13 07:12:18.272549 vlab-01 INFO bgp#bgpcfgd: Peer-group for peer '10.0.0.57' has been scheduled to be updated
Jan 13 07:12:18.273635 vlab-01 INFO bgp#bgpcfgd: Peer '(default|10.0.0.57)' has been scheduled to be added with attributes '{'asn': '1'}'
Jan 13 07:12:18.274026 vlab-01 DEBUG bgp#bgpcfgd: execute command '['vtysh', '-f', '/tmp/tmph_geju49']'.
Jan 13 07:12:18.399504 vlab-01 ERR bgp#bgpcfgd: command execution returned 2. Command: '['vtysh', '-f', '/tmp/tmph_geju49']', stdout: '', stderr: 'line 29: % Unknown command[24]:   neighbor 10.0.0.57 description #012'
Jan 13 07:12:18.400561 vlab-01 ERR bgp#bgpcfgd: ConfigMgr::commit(): can't push configuration from file='/tmp/tmph_geju49', rc='2', stdout='', stderr='line 29: % Unknown command[24]:   neighbor 10.0.0.57 description #012'
Jan 13 07:12:18.401146 vlab-01 CRIT bgp#bgpcfgd: Runner::commit was unsuccessful
Jan 13 07:12:18.574125 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/holdtime", "value": "180"}]
Jan 13 07:12:18.926387 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180')))'
Jan 13 07:12:18.926801 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:19.269490 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/keepalive", "value": "60"}]
Jan 13 07:12:19.599301 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60')))'
Jan 13 07:12:19.599526 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:19.926194 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/local_addr", "value": "10.0.0.58"}]
Jan 13 07:12:20.264585 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58')))'
Jan 13 07:12:20.264926 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:20.574737 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/name", "value": "BGPMonitor"}]
Jan 13 07:12:20.896012 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58'), ('name', 'BGPMonitor')))'
Jan 13 07:12:20.896012 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:21.228961 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/nhopself", "value": "0"}]
Jan 13 07:12:21.562566 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58'), ('name', 'BGPMonitor'), ('nhopself', '0')))'
Jan 13 07:12:21.562566 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:21.898524 vlab-01 NOTICE config: Patch Applier:   * [{"op": "add", "path": "/BGP_MONITORS/10.0.0.57/rrclient", "value": "0"}]
Jan 13 07:12:22.256744 vlab-01 DEBUG bgp#bgpcfgd: Received message : '('10.0.0.57', 'SET', (('asn', '1'), ('holdtime', '180'), ('keepalive', '60'), ('local_addr', '10.0.0.58'), ('name', 'BGPMonitor'), ('nhopself', '0'), ('rrclient', '0')))'
Jan 13 07:12:22.256744 vlab-01 ERR bgp#bgpcfgd: Peer '(default|10.0.0.57)': Can't update the peer. Only 'admin_status' attribute is supported
Jan 13 07:12:22.625071 vlab-01 NOTICE config: Patch Applier: Verifying patch updates are reflected on ConfigDB.
Jan 13 07:12:23.670024 vlab-01 NOTICE config: Patch Applier: Patch application completed.

Any insight for bgpcfgd issue?

I think this is because the fields under BGP_MONITORS are all create-only. The patch steps are adding each field one by one, this is not correct, The field needs to be added when the parent is created, if they are to be updated The parent needs to be deleted and added back. related issue: sonic-net/sonic-utilities#2029

@wen587
Copy link
Contributor

wen587 commented Jan 28, 2022

Hi Mohamed, I agree with you on the create-only conclusion. It is not an urgent need to fix as it can work now after I modify the patch.
Above example are trying to update peer address 10.0.0.57 which may not be a valid operation.
Check the test example here:
sonic-net/sonic-mgmt#4987

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Included in 202111 Branch Request for 202111 Branch For PRs being requested for 202111 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[yang-models] missing yang model for BGP_MONITORS

9 participants