Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make netconf ssh port to devices configurable #152

Open
olofhagsand opened this issue Oct 27, 2024 · 4 comments
Open

make netconf ssh port to devices configurable #152

olofhagsand opened this issue Oct 27, 2024 · 4 comments
Labels
feature New feature or request fixed: plz verify Bug/feature is fixed by developer, need verification

Comments

@olofhagsand
Copy link
Member

According to RFC 6242 NETCONF over SSH should be done over the netconf subsystem on port 830.
However, the controller is hardcoded to port 22 since most devices seem to use port 22 instead.
This request proposes to make the port configurable so that one can use port 830, even though it is not default.

@olofhagsand olofhagsand added the feature New feature or request label Oct 27, 2024
@olofhagsand olofhagsand added the fixed: plz verify Bug/feature is fixed by developer, need verification label Oct 27, 2024
@olofhagsand
Copy link
Member Author

Fixed, please verify

@getabc
Copy link

getabc commented Oct 28, 2024

Getting the following

root@ca-deb-conf[/]# set devices device mydevice port 830
Netconf error: Editing configuration: application unknown-element Failed to find YANG spec of XML node: port with parent: device in namespace: http://clicon.org/controller <bad-element>port</bad-element>

@olofhagsand
Copy link
Member Author

Works for me:

snc@olof-lab[/]# set devices device ptx-ac-4 port 78
snc@olof-lab[/]# 

Double check that the correct new YANG is installed eg at /usr/local/share/controller/main/[email protected]
and that it has the port leaf:

        leaf port {
            description
                "Transport port, typically for SSH.
                 RFC6242 stipulates a netconf subsystem over port 830, but in
                 practice many devices defaults to a netconf subsystem over port 22";
            type uint32;
            default 22;
        }

(and that all code is updated, recompiled and restarted)

@getabc
Copy link

getabc commented Oct 28, 2024

I got it working ... will be testing this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request fixed: plz verify Bug/feature is fixed by developer, need verification
Projects
None yet
Development

No branches or pull requests

2 participants