Skip to content

Commit d4f3499

Browse files
committed
IOS-XR -> IOS XR
1 parent c91debe commit d4f3499

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ Since `v1.0.0` a builder pattern is available with `ClientBuilder`. `ClientBuild
4545
from cisco_gnmi import ClientBuilder
4646

4747
builder = ClientBuilder('127.0.0.1:9339')
48-
builder.set_os('IOS-XR')
48+
builder.set_os('IOS XR')
4949
builder.set_secure_from_target()
5050
builder.set_call_authentication('admin', 'its_a_secret')
5151
client = builder.construct()
5252

5353
# Or...
5454

55-
client = ClientBuilder('127.0.0.1:9339').set_os('IOS-XR').set_secure_from_target().set_call_authentication('admin', 'its_a_secret').construct()
55+
client = ClientBuilder('127.0.0.1:9339').set_os('IOS XR').set_secure_from_target().set_call_authentication('admin', 'its_a_secret').construct()
5656
```
5757

5858
Using an encrypted channel automatically getting the certificate from the device, quick for testing:
@@ -62,7 +62,7 @@ from cisco_gnmi import ClientBuilder
6262

6363
client = ClientBuilder(
6464
'127.0.0.1:9339'
65-
).set_os('IOS-XR').set_secure_from_target().set_call_authentication(
65+
).set_os('IOS XR').set_secure_from_target().set_call_authentication(
6666
'admin',
6767
'its_a_secret'
6868
).construct()
@@ -75,7 +75,7 @@ from cisco_gnmi import ClientBuilder
7575

7676
client = ClientBuilder(
7777
'127.0.0.1:9339'
78-
).set_os('IOS-XR').set_secure_from_file(
78+
).set_os('IOS XR').set_secure_from_file(
7979
'ems.pem'
8080
).set_call_authentication(
8181
'admin',
@@ -94,7 +94,7 @@ with open('ems.pem', 'rb') as cert_fd:
9494

9595
client = ClientBuilder(
9696
'127.0.0.1:9339'
97-
).set_secure(
97+
).set_os('IOS XR').set_secure(
9898
root_cert
9999
).set_call_authentication(
100100
'admin',
@@ -109,7 +109,7 @@ from cisco_gnmi import ClientBuilder
109109

110110
client = ClientBuilder(
111111
'127.0.0.1:9339'
112-
).set_secure_from_file(
112+
).set_os('IOS XR').set_secure_from_file(
113113
root_certificates='rootCA.pem',
114114
private_key='client.key',
115115
certificate_chain='client.crt',

src/cisco_gnmi/builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ClientBuilder(object):
6565
>>> client = ClientBuilder(
6666
... '127.0.0.1:9339'
6767
... ).set_os(
68-
... 'IOS-XR'
68+
... 'IOS XR'
6969
... ).set_secure_from_target().set_ssl_target_override().set_authentication(
7070
... 'admin',
7171
... 'its_a_secret'
@@ -110,15 +110,15 @@ def set_os(self, name=None):
110110
Parameters
111111
----------
112112
name : str
113-
"IOS-XR" maps to the XRClient class.
113+
"IOS XR" maps to the XRClient class.
114114
None maps to the base Client class which simply wraps the gNMI stub.
115-
["IOS-XR", None]
115+
["IOS XR", None]
116116
117117
Returns
118118
-------
119119
self
120120
"""
121-
os_class_map = {None: Client, "IOS-XR": XRClient}
121+
os_class_map = {None: Client, "IOS XR": XRClient}
122122
if name not in os_class_map.keys():
123123
raise Exception("OS not supported!")
124124
else:

src/cisco_gnmi/xr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class XRClient(Client):
5050
--------
5151
>>> from cisco_gnmi import ClientBuilder
5252
>>> client = ClientBuilder('127.0.0.1:9339').set_os(
53-
... 'IOS-XR'
53+
... 'IOS XR'
5454
... ).set_secure_from_file(
5555
... 'ems.pem',
5656
... ).set_ssl_target_override().set_call_authentication(

0 commit comments

Comments
 (0)