Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

User can check to see if the configuration is correct before this configuration becomes permanent. Use commit check. A result of "Commit check ok" means the configuration is correct as is. Then, user can commit the configuration to become permanent. A result of "Commit check failed" means the configuration has an error that needs to be corrected.

Commit Check one correct configuration

admin@XorPlus# set vlans vlan-id 4094
admin@XorPlus# commit check 
Commit check OK.
admin@XorPlus# 
admin@XorPlus# show all
    vlans {
>       vlan-id 4094 {
>           description: ""
>           vlan-name: "default"
>           l3-interface: ""
>       }
    }
admin@XorPlus# 
admin@XorPlus# commit 
Commit OK.
Save done.
admin@XorPlus# 
admin@XorPlus# show all
    vlans {
        vlan-id 4094 {
            description: ""
            vlan-name: "default"
            l3-interface: ""
        }
    }
admin@XorPlus# run show vlans 
VlanID   Tag        Interfaces
------   --------   ------------------------------------------------------
1        untagged   ge-1/1/1, ge-1/1/2, ge-1/1/3, ge-1/1/4, ge-1/1/5
                    ge-1/1/6, ge-1/1/7, ge-1/1/8, ge-1/1/9, ge-1/1/10
                    ge-1/1/11, ge-1/1/12, ge-1/1/13, ge-1/1/14, ge-1/1/15
                    ge-1/1/16, ge-1/1/17, ge-1/1/18, ge-1/1/19, ge-1/1/20
                    ge-1/1/21, ge-1/1/22, ge-1/1/23, ge-1/1/24, ge-1/1/25
                    ge-1/1/26, ge-1/1/27, ge-1/1/28, ge-1/1/29, ge-1/1/30
                    ge-1/1/31, ge-1/1/32, ge-1/1/33, ge-1/1/34, ge-1/1/35
                    ge-1/1/36, ge-1/1/37, ge-1/1/38, ge-1/1/39, ge-1/1/40
                    ge-1/1/41, ge-1/1/42, ge-1/1/43, ge-1/1/44, ge-1/1/45
                    ge-1/1/46, ge-1/1/47, ge-1/1/48, te-1/1/49, te-1/1/50
                    te-1/1/51, te-1/1/52
         tagged     
4094     untagged   
         tagged 


Commit Check one incorrect configuration

admin@XorPlus# set vlans vlan-id 4096
admin@XorPlus# commit check 
Invalid vlan 4096
Commit check failed.
admin@XorPlus# 
admin@XorPlus# show 
    vlans {
>       vlan-id 4096 {
>       }
    }
admin@XorPlus# commit 
Invalid vlan 4096
Commit failed.
admin@XorPlus# 
admin@XorPlus# exit discard 
admin@XorPlus> 
admin@XorPlus> configure 
  • No labels