cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
703
Views
0
Helpful
1
Replies

Error when creating OSPF-cfg

yitung
Cisco Employee
Cisco Employee

When I create the ospf process, it shows the following error:

======================================

        error-type: application

        error-tag: operation-failed

        error-severity: error

        error-path: ns1:ospf/ns1:processes/ns1:process[process-name = 'DEFAULT']/ns1:default-vrf/ns1:area-addresses/ns1:area-area-id[area-id = '1']/ns1:name-scopes/ns1:name-scope[interface-name = 'GigabitEthernet0/0/0/1']/ns1:network-type

        error-message: 'CfgMgr' detected the 'fatal' condition 'This configuration has not been verified and can not be accepted by the system.'

=======================================

The way I workaround it is to create "router ospf DEFAULT" via CLI in XR first... Is it a kind of a bug or if I miss some steps??

Please find the full log in the attachment.

After creating "router ospf DEFAULT" via CLI:

===================================

RP/0/0/CPU0:R1#show run router ospf

Wed Dec 21 14:39:34.488 UTC

router ospf DEFAULT

!

RP/0/0/CPU0:R1#

Detail log in the attachment.

1 Reply 1

yitung
Cisco Employee
Cisco Employee

Just try and error and found that I need to add "process.start = empty()" to create the OSPF process from scratch.

def config_ospf(ospf):

    """Add config data to ospf object."""

    # OSPF process

    process = ospf.processes.Process()

    process.process_name = "DEFAULT"

    process.default_vrf.router_id = "10.2.11.1"

#    process.nsr = xr_ipv4_ospf_cfg.NsrEnum.TRUE

    process.start = Empty()                       <<<<<<<<<<<<<<<<<