BGP fail to bind with .pol file
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎03-09-2017 09:16 AM
Bind failure when trying to add policy to bgp
Slot-1 SDC_EXT1.21 # en bgp export ospf-extern2 address-family ipv4-unicast export-policy BGP_EXPORT_FROM_OSPF
Error: Failed to bind to export policy BGP_EXPORT_FROM_OSPF
Slot-1 SDC_EXT1.22 # vi BGP_EXPORT_FROM_OSPF.pol
SDC1 BGP Policy "BGP_EXPORT_FROM_OSPF"
entry bgp-export-permit {
if match any {
nlri 1xx.2xx.133.0/24 ;
}
then {
origin igp ;
permit ;
}
}
entry bgp-export-deny {
if match all {
}
then {
deny ;
}
}
This happens with all my BGP policies so I have something fundimentally wrong
Slot-1 SDC_EXT1.21 # en bgp export ospf-extern2 address-family ipv4-unicast export-policy BGP_EXPORT_FROM_OSPF
Error: Failed to bind to export policy BGP_EXPORT_FROM_OSPF
Slot-1 SDC_EXT1.22 # vi BGP_EXPORT_FROM_OSPF.pol
SDC1 BGP Policy "BGP_EXPORT_FROM_OSPF"
entry bgp-export-permit {
if match any {
nlri 1xx.2xx.133.0/24 ;
}
then {
origin igp ;
permit ;
}
}
entry bgp-export-deny {
if match all {
}
then {
deny ;
}
}
This happens with all my BGP policies so I have something fundimentally wrong
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎03-09-2017 10:11 AM
Looked at this a bit more and teh top comment should have a # before it , as it is a note
#SDC1 BGP Policy "BGP_EXPORT_FROM_OSPF"
entry bgp-export-permit {
if match any {
nlri 1xx.2xx.133.0/24 ;
}
then {
#SDC1 BGP Policy "BGP_EXPORT_FROM_OSPF"
entry bgp-export-permit {
if match any {
nlri 1xx.2xx.133.0/24 ;
}
then {
