From 973fa375da7f021db58c1cb4039fba22f1a7d757 Mon Sep 17 00:00:00 2001 From: sai chintalapudi Date: Tue, 10 Jul 2018 13:41:12 -0700 Subject: [PATCH] fix cust issues --- lib/cisco_node_utils/cmd_ref/tacacs_server_host.yaml | 4 ++-- lib/cisco_node_utils/vlan.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cisco_node_utils/cmd_ref/tacacs_server_host.yaml b/lib/cisco_node_utils/cmd_ref/tacacs_server_host.yaml index 53cc155a..6adcf6c2 100644 --- a/lib/cisco_node_utils/cmd_ref/tacacs_server_host.yaml +++ b/lib/cisco_node_utils/cmd_ref/tacacs_server_host.yaml @@ -48,7 +48,7 @@ hosts: port: default_value: 49 kind: int - get_value: '/^tacacs-server host .* port (\d+).*$/' + get_value: '/^tacacs-server host \s.*port (\d+).*$/' nexus: set_value: "tacacs-server host port " @@ -56,7 +56,7 @@ timeout: default_value: 0 kind: int nexus: - get_value: '/^tacacs-server host .*timeout (\d+)/' + get_value: '/^tacacs-server host \s.*timeout (\d+)/' set_value: " tacacs-server host timeout " ios_xr: context: ["tacacs-server host port "] diff --git a/lib/cisco_node_utils/vlan.rb b/lib/cisco_node_utils/vlan.rb index e142d8cd..d00d73fc 100644 --- a/lib/cisco_node_utils/vlan.rb +++ b/lib/cisco_node_utils/vlan.rb @@ -47,7 +47,7 @@ def self.vlans return hash if vlan_list.nil? vlan_list.each do |id| - hash[id] = Vlan.new(id, false) + hash[id.to_s] = Vlan.new(id, false) end hash end