netedit-update

Syntax

netedit-update

Description

This command updates the configuration for netdestination when the netdestination is in use by alias based ACLs or Classifiers.

Command context

config

Examples

switch(config)# show run
Running configuration:
hostname "switch"
module 1 type jl255a
netdestination "n1"
   host 30.1.1.1 position 118
   host 20.1.1.1 position 119
   host 10.1.1.1 position 120
   network 200.1.1.1 255.255.255.0 position 116
   network 100.1.1.1 255.255.255.0 position 117
   exit
ip access-list extended "acl1"
     10 permit alias-src "any" alias-dst "n1" alias-srvc "any"
   exit
interface 2
   ip access-group "acl1" in
   exit
switch(config)# show netdestination

 Name : n1
  Position   Type           IP Address         Mask
 ---------- -------------- ------------------ ------------------
 116        Network        200.1.1.1          255.255.255.0
 117        Network        100.1.1.1          255.255.255.0
 118        Host           30.1.1.1            -
 119        Host           20.1.1.1            -
 120        Host           10.1.1.1            -

switch(conf)# exit
(config)# netdestination n1
The netdestination 'n1' is in use and the changes are not applied until 'netedit-update' command is executed.
switch(net-dest)# host 10.1.1.2 position 120
switch(net-dest)# no host 30.1.1.1 position 118
switch(net-dest)# network 201.1.1.1/24 position 116
switch(net-dest)# host 40.1.1.1 position 110
switch(net-dest)# exit

switch(config)# show run

Running configuration:

hostname "switch"
module 1 type jl255a
netdestination "n1"
   host 30.1.1.1 position 118
   host 20.1.1.1 position 119
   host 10.1.1.1 position 120
   network 200.1.1.1 255.255.255.0 position 116
   network 100.1.1.1 255.255.255.0 position 117
   exit
ip access-list extended "acl1"
     10 permit alias-src "any" alias-dst "n1" alias-srvc "any"
   exit
interface 2
   ip access-group "acl1" in
   exit

switch(config)# show netdestination

 Name : n1*
  Position   Type           IP Address         Mask
 ---------- -------------- ------------------ ------------------
 110        Host           40.1.1.1            -
 116        Network        201.1.1.1          255.255.255.0
 117        Network        100.1.1.1          255.255.255.0
 119        Host           20.1.1.1            -
 120        Host           10.1.1.2            -

* The changes are not applied until 'netedit-update' command is executed.

switch(config)# netedit-update
The netdestination update is in progress and may take a few minutes to complete.
Configuration changes on classifier features are disabled during this operation.

switch(config)# show run

Running configuration:
hostname "switch"
module 1 type jl255a
netdestination "n1"
   host 40.1.1.1 position 110
   host 20.1.1.1 position 119
   host 10.1.1.2 position 120
   network 201.1.1.1 255.255.255.0 position 116
   network 100.1.1.1 255.255.255.0 position 117
   exit
ip access-list extended "acl1"
     10 permit alias-src "any" alias-dst "n1" alias-srvc "any"
   exit
interface 2
   ip access-group "acl1" in
   exit
switch(config)# show netdestination

 Name : n1
  Position   Type           IP Address         Mask
 ---------- -------------- ------------------ ------------------
 110        Host           40.1.1.1            -
 116        Network        201.1.1.1          255.255.255.0
 117        Network        100.1.1.1          255.255.255.0
 119        Host           20.1.1.1            -
 120        Host           10.1.1.2            -

Failure message due to hardware resource unavailability: The output of the show run will have original net-destination configuration. show netdestination will have the edited changes. These changes will be applied upon resource availability.

switch(config)# show run
Running configuration:
hostname "switch"
module 1 type jl255a
netdestination "n1"
   host 30.1.1.1 position 118
   host 20.1.1.1 position 119
   host 10.1.1.1 position 120
   network 200.1.1.1 255.255.255.0 position 116
   network 100.1.1.1 255.255.255.0 position 117
   exit
ip access-list extended "acl1"
     10 permit alias-src "any" alias-dst "n1" alias-srvc "any"
   exit
interface 2
   ip access-group "acl1" in
   exit
switch(config)# show netdestination

 Name : n1
  Position   Type           IP Address         Mask
 ---------- -------------- ------------------ ------------------
 116        Network        200.1.1.1          255.255.255.0
 117        Network        100.1.1.1          255.255.255.0
 118        Host           30.1.1.1            -
 119        Host           20.1.1.1            -
 120        Host           10.1.1.1            -

switch(conf)# exit
switch(config)# netdestination n1
The netdestination 'n1' is in use and the changes are not applied until 'netedit-update' command is executed.
switch(net-dest)# host 10.1.1.2 position 120
switch(net-dest)# no host 30.1.1.1 position 118
switch(net-dest)# network 201.1.1.1/24 position 116
switch(net-dest)# exit
switch(config)# show run
Running configuration:

hostname "switch"
module 1 type jl255a
netdestination "n1"
   host 30.1.1.1 position 118
   host 20.1.1.1 position 119
   host 10.1.1.1 position 120
   network 200.1.1.1 255.255.255.0 position 116
   network 100.1.1.1 255.255.255.0 position 117
   exit
ip access-list extended "acl1"
     10 permit alias-src "any" alias-dst "n1" alias-srvc "any"
   exit
interface 2
   ip access-group "acl1" in
   exit


switch(config)# show netdestination

 Name : n1*
  Position   Type           IP Address         Mask
 ---------- -------------- ------------------ ------------------
 110        Host           40.1.1.1            -
 116        Network        201.1.1.1          255.255.255.0
 117        Network        100.1.1.1          255.255.255.0
 119        Host           20.1.1.1            -
 120        Host           10.1.1.2            -

* The changes are not applied until 'netedit-update' command is executed.
switch(config)#netedit-update
The netdestination update is in progress and may take a few minutes to complete. Configuration changes on classifier features are disabled during this operation.

Failed to apply configuration changes fully since hardware resources are unavailable. Reverting the partially applied changes.

switch(config)#show run
Running configuration:

hostname "switch"
module 1 type jl255a
netdestination "n1"
   host 30.1.1.1 position 118
   host 20.1.1.1 position 119
   host 10.1.1.1 position 120
   network 200.1.1.1 255.255.255.0 position 116
   network 100.1.1.1 255.255.255.0 position 117
   exit
ip access-list extended "acl1"
     10 permit alias-src "any" alias-dst "n1" alias-srvc "any"
   exit
interface 2
   ip access-group "acl1" in
   exit
switch(congfig)#show netdestination
Name : n1*
  Position   Type           IP Address         Mask
 ---------- -------------- ------------------ ------------------
 110        Host           40.1.1.1            -
 116        Network        201.1.1.1          255.255.255.0
 117        Network        100.1.1.1          255.255.255.0
 119        Host           20.1.1.1            -
 120        Host           10.1.1.2            -
NOTE:

When netedit-update is in progress, show running-config, show tech, show class, ACL, and net-destination configurations will have inconsistency because of the configuration update in the background. After the success of the netedit-update command, the applied configurations can be seen.