"syntax error" while configuring router with "load replace terminal"

m4rtinm4rtin Member Posts: 170
Rather often when I copy load of configuration to a router using the load replace terminal I receive syntax error despite the fact that configuration itself is correct. For example:
root@M10i# load replace terminal 
[Type ^D at a new line to end input]
interfaces {
    ge-0/0/0 {
        replace: unit 96 {
            apply-groups TEST;
            vlan-id 96;
        }
    }
}
groups {
    replace: TEST {
        interfaces {
            <*> {
                unit <*> {
                    description "TEST";
                    bandwidth 20m;
                    family inet {
                        rpf-check;
                        mtu 1500;
                        policer {
                            input bw-20Mbps;
                            output bw-20Mbps;
                        }
                        address 10.10.10.1/28;
                    }
                }
            }
        }
    }
}
terminal:23[IMG]https://us.v-cdn.net/6030959/uploads/images/smilies/icon_sad.gif[/IMG]0) syntax error: {
  [edit groups TEST interfaces <*> unit <*> family inet policer]
    ''
      syntax error
load complete (1 errors)

[edit]
root@M10i# 

All 29 lines were pasted at a time. If I copy this very same configuration with no more than three lines at a time there are no syntax errors. What might cause this? I have tried this both with xterm and gnome-terminal, but still receive such syntax errors from time to time. Anyone seen something similar?icon_rolleyes.gif

Comments

  • hasan1507hasan1507 Member Posts: 52 ■■□□□□□□□□
    I guess it works fine I tried some configurations and it works fine at least on SRX210.

    Regards,
    Hasan
    Thanks & Regards,

    Hasan Rauf
  • m4rtinm4rtin Member Posts: 170
    hasan1507 wrote: »
    I guess it works fine I tried some configurations and it works fine at least on SRX210.

    Regards,
    Hasan

    Yes, configuration itself is fine.

    Any ideas what might cause "syntax errors" from time to time when one pastes a load of configuration to router under "load replace terminal" mode? icon_rolleyes.gif
  • AldurAldur Member Posts: 1,460
    Do you get the same results with the "load merge terminal" or the "load override terminal" commands?
    "Bribe is such an ugly word. I prefer extortion. The X makes it sound cool."

    -Bender
Sign In or Register to comment.