BGP fail to bind with .pol file

  • 0
  • 1
  • Problem
  • Updated 1 year ago
  • Solved
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
Photo of Rod Robertson

Rod Robertson

  • 2,344 Points 2k badge 2x thumb
  • its been a long day started at 05:00

Posted 1 year ago

  • 0
  • 1
Photo of Rod Robertson

Rod Robertson

  • 2,344 Points 2k badge 2x thumb
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 {